package com.yj.cmp.sdk.fusioncompute.storage.storage.vo;

import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author huangp
 * @create 2021-09-01 13:45
 */
@NoArgsConstructor
@Data
public class StorageListVo {


    @SerializedName("storageResources")
    private List<StorageResourcesDTO> storageResources;
    @SerializedName("total")
    private Integer total;

    @NoArgsConstructor
    @Data
    public static class StorageResourcesDTO {
        @SerializedName("dataChannel")
        private List<DataChannelDTO> dataChannel;
        @SerializedName("deviceType")
        private String deviceType;
        @SerializedName("managementIp")
        private String managementIp;
        @SerializedName("managementPort")
        private Integer managementPort;
        @SerializedName("name")
        private String name;
        @SerializedName("storageType")
        private String storageType;
        @SerializedName("uri")
        private String uri;
        @SerializedName("urn")
        private String urn;
        @SerializedName("vender")
        private String vender;

        @NoArgsConstructor
        @Data
        public static class DataChannelDTO {
            @SerializedName("ip")
            private String ip;
            @SerializedName("port")
            private Integer port;
        }
    }
}
